package com.accesshollywood.trace;

import org.newdawn.slick.util.Log;

public class Trace {
	public static void info(Object obj) {
		// Log.info(obj.toString());
	}

	public static void debug(Object obj) {
		// Log.info(obj.toString());
	}

	public static void warn(Object obj) {
		// Log.info(obj.toString());
	}

	public static void warn(Object obj, Exception e) {
		// Log.info(obj.toString() + "\n" + e.getMessage());
	}

	public static void error(Object obj) {
		// Log.error(obj.toString());
	}

	public static void error(Object obj, Exception e) {
		// Log.error(obj.toString() + "\n" + e.getMessage());
	}

	public static void stack() {
		StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
		System.out.println("-----------------------");
		for (StackTraceElement e : stackTraceElements) {
			System.out.println(e.getClassName() + "  " + e.getMethodName() + "   " + e.getLineNumber());
		}
	}
}
